package com.blog.service;

import com.blog.domain.Blog;
import com.blog.domain.Type;
import com.blog.domain.User;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Blog entities
 * 
 */
public interface BlogService {

	/**
	 * Save an existing Blog entity
	 * 
	 */
	public void saveBlog(Blog blog);

	/**
	 * Return all Blog entity
	 * 
	 */
	public List<Blog> findAllBlogs(Integer startResult, Integer maxRows);

	/**
	 */
	public Blog findBlogByPrimaryKey(Integer id);

	/**
	 * Return a count of all Blog entity
	 * 
	 */
	public Integer countBlogs();

	/**
	 * Save an existing User entity
	 * 
	 */
	public Blog saveBlogUser(Integer id_1, User related_user);

	/**
	 * Delete an existing Type entity
	 * 
	 */
	public Blog deleteBlogType(Integer blog_id, Integer related_type_id);

	/**
	 * Load an existing Blog entity
	 * 
	 */
	public Set<Blog> loadBlogs();

	/**
	 * Save an existing Type entity
	 * 
	 */
	public Blog saveBlogType(Integer id_2, Type related_type);

	/**
	 * Delete an existing Blog entity
	 * 
	 */
	public void deleteBlog(Blog blog_1);

	/**
	 * Delete an existing User entity
	 * 
	 */
	public Blog deleteBlogUser(Integer blog_id_1, Integer related_user_id);
	
}